Transforming character delimited values

ABSTRACT

Techniques for transforming character delimited values are presented herein. An input module is configured to read a set of character delimited values. A generation module is configured to generate a synchronization block for the set of values that includes a value selected from a byte size of the associated value and may be a flag representing a predetermined value. An output module is configured to output the synchronization block and the set of values to a binary data output stream for output in a device dependent byte order according to the respective byte sizes of the values in the set of values.

PRIORITY

This application is a continuation of and claims the benefit of priorityto U.S. patent application Ser. No. 14/576,969, entitled “TRANSFORMINGCHARACTER DELIMITED VALUES,” filed on Dec. 19, 2014, which is herebyincorporated by reference herein in its entirety.

TECHNICAL FIELD

The subject matter disclosed herein generally relates to the technicalfield of data processing and more specifically relates to transformingcharacter delimited values.

BACKGROUND

Modern technology offers data storage systems that store massive amountsof data in many different formats. Databases, data servers, and otherdevices store data that represents nearly every facet of digitalsociety. One prevalent format includes character delimited values files.For example, a text file may include many rows of data where each rowincludes a set of values delimited or separated by commas, or anothercharacter. Such a file format may be easier for a human to read and mayprovide a standard data format, making migration from one data storagesystem to another less complex.

However, a character delimited data file suffers from several drawbacks.First, such a file is not well compressed causing the data to occupymore storage space than necessary. Of course, such a file may becompressed to reduce storage space; however, the file generally wouldneed to be uncompressed in order to access values stored in the file.

Second, because varying values occupy different lengths in the datafile, data values would generally need to be read in order to accesscertain values. For example, in order to determine the 10^(th) value,the previous nine values would generally need to be read. Furthermore,in order to read a value in the 100^(th) row, the previous 99 rows wouldgenerally need to be read by a data processing system. Therefore,accessing data in a character delimited value file is much slower thanother, more native formats.

BRIEF DESCRIPTION OF THE DRAWINGS

Some embodiments are illustrated by way of example and not limitation inthe figures of the accompanying drawings.

FIG. 1 is a block diagram illustrating a system for transformingcharacter delimited values, in accordance with an example embodiment.

FIG. 2 is a block diagram illustrating a system for transformingcharacter delimited values, in accordance with an example embodiment.

FIG. 3 is an illustration depicting one step in transforming characterdelimited values, in accordance with an example embodiment.

FIG. 4 is an illustration depicting one step in transforming characterdelimited values, in accordance with an example embodiment.

FIG. 5 is an illustration depicting one step in transforming characterdelimited values, in accordance with an example embodiment.

FIG. 6 is an illustration depicting one step in transforming characterdelimited values, in accordance with an example embodiment.

FIG. 7 is an illustration depicting a method for transforming characterdelimited values, in accordance with an example embodiment.

FIG. 8 is an illustration depicting a method for transforming characterdelimited values, in accordance with an example embodiment.

FIG. 9 is an illustration depicting a method for reading transformedcharacter delimited values, in accordance with an example embodiment.

FIG. 10 is a block diagram illustrating components of a machine,according to some example embodiments, able to read instructions from amachine-readable medium and perform any one or more of the methodologiesdiscussed herein.

DETAILED DESCRIPTION

The description that follows includes illustrative systems, methods,techniques, instruction sequences, and computing machine programproducts that embody illustrative embodiments. In the followingdescription, for purposes of explanation, numerous specific details areset forth in order to provide an understanding of various embodiments ofthe inventive subject matter. It will be evident, however, to thoseskilled in the art, that embodiments of the inventive subject matter maybe practiced without these specific details. In general, well-knowninstruction instances, protocols, structures, and techniques have notbeen shown in detail.

Example systems and methods are presented for transforming characterdelimited values. According to embodiments described herein, such atransformation accomplishes both compression of the values and increasedaccess speed. In certain embodiments, a system may read a set of valuesfrom a character delimited value file, a database, or a network storagesystem. In one example, the character delimited values are stored in acomma-delimited value file.

As part of the transformation, the system may generate, in nearreal-time, a synchronization block that precedes the values in theoutput and describes the values. For each of the values, thesynchronization block either stores a byte size for the value, or a flagthat indicates the value is a predetermined value. In one example, thesynchronization block indicates a number of bytes required to store thevalue. In another example, where the value matches a predetermined valueor a value from a previous set of values, the synchronization blockindicates a flag to identify the value.

In the example, where the value matches a pre-defined value, instead ofstoring the size of the value in the synchronization block, the systemstores a flag representing the predefined value. In this case, becausethe flag indicates the value, the actual value is not included in theoutput set of values. Similarly, in the case when the value matches avalue from an immediately preceding value set, the synchronization blockmay store a flag representing the preceding value. Therefore, the actualvalue need not be stored in the output set of values. Because values, incertain examples, are indicated in the synchronization block instead ofin the set of values, the number of actual values being stored isreduced. This both decreases storage requirements for the values anddecreases access time for the values.

The transformation addresses the drawbacks of using a characterdelimited value file. The transformation provides binary performancebased on the text format of a character delimited value file. Thetransformation also facilitates migrating data from one storage systemto another using a standard data format because most, if not all, datastorage systems are capable of working with character delimited valuefiles. Second, massive amounts of data may be stored and accessed muchmore quickly than with currently available formats.

Another benefit is that according to the transformation, values in thefile may be stored in a binary format in a device dependent byte order.This allows a storage system to read/write values one value at a timewithout considering byte order. Therefore, the storage system may writefour bytes in one operation capable of representing an integer value upto 4,294,967,295 (or 4294967295). Prior to the transformation, the samevalue would occupy up to 13 bytes in the character delimited value file.Furthermore, because the value is stored in a device dependent byteorder, the value may also be read in one operation, whereas reading thecharacter delimited value may cost up to 13 byte read operations todetermine the value.

In another benefit, the synchronization block may store a flagrepresenting a predetermined value. For example, where a set of dataincludes many values that are repeated (e.g., zero, one, or othernumber), the synchronization block may include a value in the flag thatrepresents the value so that the value no longer needs to be stored inthe set of values. For example, where a particular value in a set ofvalues equals 99,999, a generation module may associate a flag of ninewith the particular value. In this example, for each value that equals99,999 in the set of values, the associated flag will equal nine.

A particular benefit of storing predefined values in the synchronizationblock includes not storing the value in the set of values. This greatlyreduces the amount of storage space needed to store the transformedcharacter delimited values. Another benefit is that looking up values inthe transformed data is accomplished more quickly because some valuesmay be determined after reading the synchronization block withoutrequiring a system to read the actual values.

FIG. 1 is a block diagram illustrating a system 100 for transformingcharacter delimited values, in accordance with an example embodiment. Inone embodiment, the system 100 may include an input module 120, ageneration module 140, and an output module 160.

According to one embodiment, the input module 120 may be configured toread a set of character delimited values. The input module 120 mayreceive character delimited values from a wide variety of sources aswill be described in FIG. 2. In one example, the input module 120 mayread sets of values from a comma-separated value (CSV) file, whereineach row in the CSV file includes a set of values. Therefore, characterdelimited values may include character separated values.

In one embodiment, the generation module 140 may be configured togenerate, in near real-time and for each set of input values, asynchronization block for the set of values. A synchronization block, asdescribed herein, includes nibbles (4 bits) for each of the valuesreceived in the input stream. As one skilled in the art may appreciateand as used herein, a nibble is one half of one byte, or four bits. Asigned nibble may represent a value from −8 to 7, and an unsigned nibblemay represent values from 0 to 15.

As described herein, real-time generation of a synchronization block mayinclude generating the synchronization block immediately after receivingthe input stream that includes a set of values. Because a system asdescribed herein may transform hundreds of millions of sets of valuessequentially, the system may generate synchronization blocks forrespective set of values while receiving additional values from theinput stream. Therefore, in one example, real-time generation may alsoinclude generating respective synchronization blocks concurrently withreceiving additional set of values.

The nibbles in one example embodiment indicate how many bytes are neededto store the value being represented or is a special code that isinterpreted in a particular way. For example, in response to a valuebeing less than 256, the generation module 140 may determine that thenibble is one because a single byte may store the value. In anotherexample, the value may be 999,999,999 and the generation module 140 maydetermine that the nibble is four because four bytes are needed to storethe value 999,999,999.

In another example embodiment, the value may include a string. Forexample, the value may be the string “empty value.” In this example, thenibble may be a predetermined value that indicates a string. In oneexample, the nibble value may be 0x0D. Accordingly, the generationmodule 140 may represent the string in the set of values using a firstbyte to indicate the size of the string, then subsequent bytes to storethe characters of the string.

In one non-limiting example, the string may be “empty value.” Thegeneration module 140 may use the 0x0D predetermined flag in thesynchronization block, and represent the string in the set of valuesusing a first byte value of 11 (the length of the string), thesubsequently the bytes values representing the string literals (e.g. ‘e’‘m’ ‘p’ ‘t’ ‘y’ ‘ ’ ‘s’ ‘t’ ‘r’ ‘i’ ‘n’ ‘g’).

In another example embodiment, the value may include a much longerstring, such as a paragraph, or other composition that includes morethan 255 characters (a number of characters that cannot be representedusing one byte). In this example, the nibble value may be apredetermined value that indicates a “long string.” For example, thepredetermine nibble for the long string is 0x0E. The generation module140 may represent the string in the set of values using two bytes toindicate the size of the string, then include the characters literals ofthe string in the output stream. For example, the string may include2000 characters. Accordingly, the generation module may include a nibblevalue of 0x0E in the synchronization block, a (two byte) value of 0x07D0in the set of values, and then the string literals in the set of values.Using two bytes in the set of values to represent the size of the stringallows a string of 65,536 characters to be stored in the set of values.Of course, one skilled in the art may recognize other nibble values forrepresenting longer strings and this disclosure is not limited in thisregard.

In another embodiment, the generation module 140 may end thesynchronization block with a boundary nibble. For example, thegeneration module 140 may append the synchronization block with aboundary nibble that represents the end of the synchronization block.Therefore, the boundary nibble may provide a boundary between thesynchronization block and the associated set of values. Providing such aboundary may inform a device reading the synchronization block when thesynchronization block is at an end and where actual values begin. In oneexample, the value of the nibble may be a predetermined value such as,but not limited to, 15 (0xF). Of course, other values may be used, andthis disclosure is not limited in this regard.

In another embodiment, the generation module 140 may include a fillernibble in response to the number of nibbles for the synchronizationblock and the boundary nibble being an odd number. For example, where asynchronization block includes six nibbles and the boundary nibble isone nibble, the generation module 140 may include a filler nibble aftervalues in the synchronization block but before a boundary nibble. Addinga filler nibble in this manner ensures that the size of thesynchronization block, filler nibble, and boundary nibble add to an evennumber of nibbles and therefore, an integer number of bytes.

Including a filler nibble may ensure that values included in thesynchronization block and values included in the set of values are bytealigned. Values that are byte aligned may be more quickly read by adevice reading the synchronization block and/or the set of values.Therefore, in one example, a synchronization block may end with a bytevalue of 15 (0x0F), which represents a filler nibble with a value ofzero (0x0) and a boundary nibble with a value of 15 (0xF). In anotherexample, the generation module 140 may end the synchronization blockwith a byte value of 0xF0 which represents the boundary nibble beforethe filler nibble.

In another embodiment, the nibble in a synchronization block may includea predetermined flag. In one embodiment, the flag may represent thecorresponding value in the set of values. For example, the flag may bezero, which indicates that the corresponding value in the set of valuesis also zero.

In another embodiment, the flag may be a predetermined value. Forexample in response to the set of values including many identicalvalues, the generation module 140 may determine that the flag may beused to represent the many identical values. For example, where a set ofvalues includes many values that equal 45854, the generation module 140may determine a flag to represent the values that equal 45854. In oneexample, the generation module 140 may select a predetermined value asnine (0x9). Therefore, for each value in the set of values that equals45854, the generation module 140 may include the flag of nine (0x9)instead of a byte size of the value.

Furthermore, because the predetermined flag represents a specific valuein the set of values, values in the set of values that are equal to therepresented value may no longer be included in the set of values. Thisfurther decreases a size requirement for storing the synchronizationblock and the set of values. Also, using a predetermined flag in thismanner decreases access time for values in the set of values because areading device needs only to read the synchronization block.

In another example, the predetermined value may indicate that theassociated value in the set of values is a repeated value from animmediately previous set of values. A predetermined flag may be six(0x6) to indicate that the associated value is a repeat of a previousset. Of course, any value may be used, and this disclosure is notlimited in this regard. For example, where the fourth value in animmediately previous set of values was 8,456,123, in response to thefourth value in a current set of values being 8,456,123 the generationmodule 140 may set the nibble representing the fourth value to six(0x6).

Furthermore, because the predetermined flag represents the repeatedvalue in the set of values, the value that is repeated may no longer beincluded in the set of values. This further decreases a size requirementfor storing the synchronization block and the set of values anddecreases access time for values in the set of values because thereading device need only read the synchronization block to determine therepeated value.

In another embodiment, the generation module 140 may cache thesynchronization block. The generation module 140 may store a list or aset of previously generated synchronization blocks for previous sets ofvalues. In response to the current synchronization block matching asynchronization block in the cache, the generation module 140 mayinclude an index to the cache of synchronization blocks instead of thefull synchronization block. This may further decrease storagerequirements for the transformed delimited values.

In one embodiment, the output module 160 may be configured tosequentially output the synchronization block and the values to a binaryoutput stream. In one example, the binary output stream may include thesynchronization block and then the set of values. The binary outputstream may output the bytes representing the synchronization block andthe set of values in a device dependent byte order.

For example, because the synchronization block primarily includes bytevalues (consisting of the nibbles previously described), the outputstream may output the synchronization block one byte at a time. Inanother example, because values in the set of values may includemultiple bytes, the output stream may output the set of values accordingto a size of each respective value.

In one example, a system operating the output module 160 may be aBig-endian system, and the value may include two bytes (e.g., a word).As one skilled in the art may appreciate, a Big-endian system may storethe most significant byte of a word in the smallest address and theleast significant byte in the largest address. Therefore, when operatingon a Big-endian system, the output module 160 may output bytes for aword in a reverse order.

Similarly, a system operating the output module 160 may be alittle-endian system and the value may include four bytes. As oneskilled in the art may appreciate, a little-endian system may store themost significant byte of the four bytes in the largest address and maystore the least significant byte of the four bytes in the smallestaddress. Therefore, when operating on a Little-endian system, the outputmodule 160 may output bytes for the four bytes in order.

In another embodiment, the output module 160 may be concurrentlyoutputting many sets of values. The generation module 140 may havegenerated a list of cached synchronization blocks while generatingsynchronization blocks for respective set of values. The output module160, in one example embodiment, may output the list of cachedsynchronization blocks before outputting the respective synchronizationblocks and sets of values for the many sets of values.

FIG. 2 is a block diagram illustrating a system 200 for transforming acharacter delimited value file, in accordance with an exampleembodiment. The system 200 may include a storage device 220, a networkdevice 240, a database 260, the input module 120, the generation module140, the output module 160, an output stream 210, a storage device 222,and a network device 242. The input module 120, the generation module140, and the output module 160 may or may not be substantially similarto those modules depicted in FIG. 1.

In one embodiment, the input module 120 may receive a set of characterdelimited values in a text-based format. The input module 120 mayreceive the values from any of the storage device 220, the networkdevice 240, and/or the database 260.

In one example, the input module 120 may receive character delimitedvalues from a storage device 220. The storage device 220 includes adevice capable of storing character delimited values on a computerreadable storage medium as one skilled in the art may appreciate.Various examples include a hard drive, a flash drive, a compact disc,other forms of magnetic storage, other forms of electronic storage,other forms of physical storage, or other forms of storage or the like,as one skilled in the art may appreciate. The storage device 220 mayinclude any to-be-developed storage medium.

Furthermore, the network device 240 may transmit the values to the inputmodule 120 using any network protocol, transmission medium, or the like.Therefore, a connection 280 with the input module 120 may include awired connection, a wireless connection, any network protocol, anynetwork topology, or any other communication medium as one skilled inthe art may appreciate, and this disclosure is not limited in thisregard.

The input module 120 in another embodiment may receive characterdelimited values from the network device 240. In one example, the inputmodule 120 may receive a stream of bytes representing the characterdelimited values over a network connection (e.g., connection 280). Thestream of bytes may be substantially similar to a character delimitedvalue file as one skilled in the art may appreciate. For example thestream of bytes may include a set of values delimited by a comma. Ofcourse, the values may be deliminted by any character such as, but notlimited to, a comma, a period, a semicolon, a colon, an asterisk, aletter, or other character, or the like. Delimiting characters may beselected from any character set, and this disclosure is not limitedregarding the character used to divide values in the input stream.Furthermore, rows of values may be delimited by line ending characterssuch as, but not limited to, a “new line” (<LF>) character, a “carriagereturn” (<CR>) character, or other character, or the like.

In another embodiment, the input module 120 may receive a characterdelimited value file from the network device 240. As one skilled in theart may appreciate, the file may be transmitted using any currentlyknown or to-be-developed file transmission protocol such as, but notlimited to, file transfer protocol (FTP), torrent, network file system(NFS), SAMBA™, or the like. The character delimited value file mayinclude many sets of values, and the input module 120 may process eachset or row of values sequentially.

In another example, the input module 120 may receive character delimitedvalues from the database 260. In one example, a structured querylanguage (SQL) database may output values in a character delimitedformat to the input module 120. For example, results from an SQL querymay result in many sets of data values, and the data values may beformatted in a character delimited stream of data representing theresults of the query.

Also, the database 260 may dump values to the input module 120 in acharacter delimited format. In another example embodiment, the inputmodule 120 may receive values from the database 260 over a networkconnection, over a direct connection, or the like. Of course, oneskilled in the art may recognize other ways to export values in adatabase into a character delimited format and this disclosure is notlimited in this regard.

After performing one or more operations on the received set or sets ofvalues, the output module 160 may output resulting synchronizationblocks and the values to a binary output data stream 210. The outputdata stream 210 may output the received data stream to a wide variety ofdestinations and may do so in a device dependent byte order according torespective byte sizes of the values, as will be described in laterexamples.

In one example, the binary output data stream 210 may output receivedbytes to a storage device 222 in a device dependent byte order forstorage as a file. In certain embodiments, destination files maycoordinate with source files. For example, the input module 120 may reada file from the storage device 220, and the output data stream 210 maystore a transformation of the file to the storage device 222. Inresponse to reading 10 different files from the source storage device220, the output data stream 210 may then store 10 different transformedfiles at the storage device 222. Of course, this is not necessarily thecase, as the output module 160 may combine values from many files to asingle destination file, or other file, or the like. In other examples,the storage device 222 may include volatile memory, non-volatile memory,or other, or to-be-developed storage technologies, and this disclosureis meant to include all such storage mediums.

In another example, the binary output data stream 210 may outputreceived bytes to the network device 242. The binary output data stream210 may output received bytes in byte dependent order based, at least inpart, on architecture for a device operating the output module 160. Inanother example, the binary output data stream 210 may output receivedbytes in a device dependent byte order based, at least in part, onarchitecture for a destination device. In another embodiment, the outputmodule 160 may output the synchronization block and the set of values tothe network device 242 through the binary output data stream 210 usingany network protocol, transmission medium, or the like.

FIG. 3 is an illustration depicting one step in transforming characterdelimited values, in accordance with an example embodiment. In thisexample embodiment, the input module 120 may receive a string of values320 that includes many comma delimited values. The input module 120 mayreceive, from a user, the delimiting character, which is a comma in thisexample.

The string of values 320 may represent a row of values in a characterdelimited value file. In this example, the string of values 320concludes with a carriage return (<CR>) character and a new line or linefeed (<LF>) character.

The input module 120 may parse the string of values 320 by reading thestring of values 320 one character at a time until a delimitingcharacter is read. After a delimiting character is read, the inputmodule 120 may convert the received numbers into a value, as one skilledin the art may appreciate. The input module 120 may repeat this processof reading values between delimiters until the <CR> and the <LF>characters are read. Of course, other characters may be used to indicatean end of the set of values, and this disclosure is not limited in thisregard.

After converting the string of values 320 into their numeric equivalentsof string literals, the input module 120 stores the values in an array,list, vector, or other structure. Therefore, the input module 120converts the string of values 320 to a set of equivalent numeric values330 and prepares the set for processing by the generation module 140.

FIG. 4 is an illustration depicting one step 400 in transformingcharacter delimited values, in accordance with an example embodiment.The generation module 140 may read the set of values and may determine abyte size requirement for storing each of the values.

In one example, the values may include positive values and the bytestorage ranges may be as follows: one byte for values between 0 and 256,two bytes for values 256 to 65,536, four bytes for values between 65,536and 4,294,967,295 (2³²−1). In another examples, values in the set ofvalues 330 may include negative values, and the byte storage ranges maybe as follows: one byte for values from −8 to 7, two bytes for valuesfrom −32768 to 32,767 (excluding −8 to 7), and four bytes for valuesfrom −2,147,483,648 to 2,147,483,647 (2³²−1) (excluding values fromvalues from −32768 to 32,767).

In one example embodiment, the generation module 140 may determine anibble for each of the values in the set of values 330. For example,because the first value of 127 may be represented using one byte, thegeneration module 140 may assign a nibble of 1 (0001₂). Because thesecond value of 42,678 may be represented using two bytes, thegeneration module 140 may assign a nibble of 2 (0010₂). Because thethird value of 111,832 may be represented using three bytes, thegeneration module 140 may assign a nibble of 3 (0011₂). Because thefourth value of 18,000,411 may be represented using four bytes, thegeneration module 140 may assign a nibble of 4 (0100₂). Because thefifth value of 9,941 may be represented using two bytes, the generationmodule 140 may assign a nibble of 2 (0010₂).

Regarding the sixth value of 0, the generation module 140 may assign anibble of zero (0000₂). A nibble of zero may be a predetermined flagthat indicates that the corresponding value in the set of values iszero. Because the nibble of zero represents a predetermined value, thecorresponding value of zero may not be stored in the set of values, aswill be later described. Of course, the predetermined flag of zero mayrepresent other values, and this disclosure is not limited in thisregard.

Continuing with the set of values 330, the generation module 140 mayrepresent the seventh through ninth values using a predetermined valueof zero as done with the sixth value. The generation module 140 may usea predetermined value of 9 (1001₂) to represent the tenth through thetwelfth values. A predetermined flag of 9, in this example embodiment,represents that the values are the same as with a preceding set ofvalues. For example, because a previous set of values included a valueof 1 in the tenth through the twelfth indexes, the generation module 140may use the predetermined flag of 9 to represent the values. Of course,the predetermined flag may represent other values and this disclosure isnot limited in this regard. Accordingly, the generation module 140 maygenerate a nibble for each of the values in the set of values 330,resulting in a set of nibbles 332.

After generating a set of nibbles 332 for the values in the set ofvalues 330, the generation module 140 may combine the nibbles 332 intobytes by pairing up nibbles 332. For example, the nibbles 332 for thefirst (0001₂) and second (10102) values may be combined, resulting in abyte value 334 of 00011001₂. Accordingly, the generation module 140 maycombine nibbles 332 for 3^(rd) and 4^(th) (00110100₂), 5^(th) and6^(th)(00100000₂), 7^(th) and 8^(th) (00000000₂), 9^(th) and 10^(th)(00001001₂), 11^(th) and 12^(th) (10011001₂). Pairing the nibbles 332 inthis way results in a set of byte values 334 that represent the nibbles332 for the respective sets of values 330.

The nibble pairings may also be represented in hexadecimal format as anarray of byte values 336. The array of byte values 336 thereforerepresent nibbles 332 for each of the values in the set of values 330.As previously indicated, some of the nibbles 332 represent byte sizes ofthe respective values, and other nibbles 332 represent flags. In orderto indicate an end of the nibbles 332, the generation module 140 mayterminate the array of byte values 336 using a boundary nibble (0xF)418. Also, because adding the boundary nibble 418 would result in an oddnumber (13) of nibbles, the generation module 140 may insert a fillernibble (0x0) 420 to ensure that the number of nibbles is even, resultingin adequate nibble pairing to equal a specific number of bytes in thesynchronization block 440.

FIG. 5 is an illustration depicting one step in transforming characterdelimited values, in accordance with an example embodiment. Inaccordance with the present example embodiment, the generation module140 may utilize the synchronization block 440 and the set of values 330to generate a transformation 536 of the set of values 330.

The generation module 140 may begin at the first value (127) and mayread the first nibble of the synchronization block 440 (0x1) todetermine that the first value 127 is to be stored in one byte. Thefirst byte in the transformation 536 a for representing the first value(using a signed format) is 01111111₂.

The generation module 140 may continue and read the second nibble in thesynchronization block 440 (0x2) and determine that the second value inthe set of values 330 is to be stored in two bytes. Accordingly, thesecond and third bytes in the transformation 536 a for representing thesecond value (42,678) are 1010 0111 0001 0000₂.

The generation module 140 may continue and read the third nibble in thesynchronization block 440 (0x3) and determine that the third value(110,832) in the set of values 330 is to be stored in three bytes.Accordingly, the 4^(th) through the 6^(th) bytes in the transformation536 a for representing the third value (110,832) are 0000 0001 1011 00001111 0000₂.

The generation module 140 may continue and read the fourth nibble (0x4)in the synchronization block 440 and determine that the fourth value(18,000,411) in the set of values 330 is to be stored in four bytes.Accordingly, the 7^(th) through 10^(th) bytes in the transformation 536a for representing the fourth value (18,000,411) are 0000 0001 0001 00101010 1010 0001 1011₂.

The generation module 140 may continue and read the fifth nibble (0x2)in the synchronization block 440 and determine that the value (9,941) inthe set of values 330 is to be stored in two bytes. Accordingly, the11^(th) and 12^(th) bytes in the transformation 536 a for representingthe fifth value (9,941) are 0010 0110 1101 0101₂.

The generation module 140 may continue and read the sixth nibble (0x0)in the synchronization block 440 and determine that sixth value is apredetermined value (0x0). In this example embodiment, a predeterminedvalue of 0 is represented by a nibble of 0. Therefore, the sixth valueis represented by the nibble in the synchronization block 440 and is notstored in the transformation 536 a of values. This is similarly the casefor the 7^(th), 8^(th), and 9^(th) values in the set of values 330.

The generation module 140 may continue and read the 10^(th) nibble (0x9)in the synchronization block 440 and determine that the tenth value is apredetermined value. In one example, because the nibble is greater thaneight, it is determined to be a flag. In this example embodiment, apredetermined value of 9 indicates that the value in the set of values330 is a predetermined value; a one in this example. Therefore, thegeneration module 140 may determine that the 10^(th) value in the set ofvalues 330 is a predetermined value and it is not stored in thetransformation 536 a of values. This is similarly the case for the11^(th) and 12^(th) values in the set of values 330. The transformation536 a may also be represented in a hexadecimal format (as shown in thetransformed set of values 536 b), as one skilled in the art mayappreciate.

The generation module 140 may then combine the synchronization block 440and the transformed set of values 536 b to form an array of bytes in thebinary stream 540 representing the set of values 330. In this exampleembodiment, the resulting array of bytes may be included in the binarystream 540 as follows: 0x12 34 20 00 09 99 F0 7F A7 10 01 B0 F0 01 12 AA1B 26 D5. In this example embodiment, the resulting array of bytes forrepresenting the set of values 330 includes 20 bytes whereas theoriginal character delimited values 320 included at least 47 bytes.

In one embodiment, the output module 160 may output the binary stream540 in a wide variety of different ways, as one skilled in the art mayappreciate. The output module 160 may output the binary stream 540 in adevice dependent format. For example, the output module 160 may reorderbytes in the binary stream 540 to support reading integers (4 bytes) ata time. In one example, the output module 160 may output the binarystream 540, as integers, for a Big-endian system, by storing bytes forthe respective integers in reverse order such that a reading device mayread the binary stream 540 four bytes at a time, resulting in theindividual bytes being in the correct order. Of course, other byte sizedreads may be used, and this disclosure is not limited in this regard.Furthermore, the output module 160 may, in certain embodiments, insertfiller bytes in order to byte align one or more values. Byte aligningvalues in this may improves write speed for the output stream and alsomay improve read speed for the binary stream 540.

FIG. 6 is an illustration depicting one step 600 in transformingcharacter delimited values, in accordance with an example embodiment. Inaccordance with the current example embodiment, the generation module140 may have generated a binary stream 540. The output module 160 mayoutput the binary stream 540 in a device dependent format 620 accordingto respective byte sizes of the one or more values.

According to one example embodiment, the output module 160 may reorderthe first four bytes of the synchronization block 440 (0x12 0x34 0x300x00) according to a Big-endian format (reverse order) so that a readingsystem may read the four bytes in a single operation as an integer. Inanother example embodiment the output module 160 may output thesynchronization block in byte order and may order bytes for thetransformed set of values in a device-dependent byte order.

The output module 160 may continue and similarly order the next twobytes (0x09 0x99) of the synchronization block 440. The binary stream540 may then output the transformed synchronization block 440. Theoutput module 160 may determine, based on the corresponding nibble inthe synchronization block 440, that the first value (0x7F) of the set ofvalues 330 is represented by one byte and may write the first byte(0x7F). The output module 160 may then determine that the second value(0xA710) is represented by two bytes and may reorder the next two bytes,now as 0x10A7, so that the binary stream 540 may output the two bytesaccording to a two-byte data type, such as, but not limited to, a shortinteger, or other 16-bit data type.

The output module 160 may continue and determine that the next valueincludes three bytes (0x01 0xB0 0xF0). The output module 160 may outputthree bytes in a variety of different device-dependent ways. First, theoutput module 160 may divide the three bytes into two bytes (0x01 and0xB0) and one byte (0xF0) as depicted in FIG. 6. The output module 160may then reorder the first two bytes and output the third byte (0xF0) ina separate output operation. In another example (not depicted in FIG.6), the output module 160 may output the first byte (0x01) in a separateoperation and reorder the other two bytes (0xB0 and 0xF0). In anotherexample (not depicted in FIG. 6), the output module 160 may insert afiller byte (0x00) and then may output the three bytes and the fillerbyte as four bytes in a single output operation. Of course, the outputmodule 160 may still reorder the four bytes according to either aBig-endian or a Little-endian format as described and based on anarchitecture of a device performing the operations.

The output module 160 may then determine, based on the associated nibblein the synchronization block 440, that the next value (0x0112AA1B)includes four bytes and may reorder the four bytes (0x1BAA1201)according to a device dependent format 640 before outputting the fourbytes via the binary stream 540. The output module 160 may thensimilarly determine that the next value (0x26 0xD5) includes two bytesand may reorder the two bytes (0xD5 0x26) according to a devicedependent format 640.

In another example embodiment, the output module 160 may terminate theset of values by outputting a termination flag, such as 0xFF. Such atermination flag may indicate to a reading system that this particularset of values has ended.

FIG. 7 is an illustration depicting a method 700 for transformingcharacter delimited values, in accordance with an example embodiment.Operations in the method 700 may be performed by the system 100, usingmodules described above with respect to FIGS. 1-3. As shown in FIG. 7,the method 700 includes operations 710, 712, and 714.

In one embodiment, the method 700 may begin and at operation 710 theinput module 120 may read a set of character delimited values (e.g., theset of values 330) in a text-based format. In another embodiment, theset of values may correspond to a row of values in a character delimitedvalue file. The method 700 may continue at operation 712 and thegeneration module 140 may generate, in real-time, a synchronizationblock as described herein. The synchronization block includes nibbles(e.g., nibbles 332) for each of the values in the set of values read bythe input module 120.

The method 700 may continue at operation 714 and the output module 160may sequentially output the synchronization block and the one or morevalues to a binary output data stream (e.g., binary stream 540). Thebinary output data stream may output the one or more values in a devicedependent byte order according to respective byte size of the one ormore values.

FIG. 8 is an illustration depicting a method 800 for transformingcharacter delimited values, in accordance with an example embodiment.Operations in the method 800 may be performed by the system 100, usingmodules described above with respect to FIGS. 1-3. As shown in FIG. 8,the method 800 includes operations 810, 812, 814, 816, 818, and 820.

In one embodiment, the method 800 may begin and at operation 810 theinput module 120 may read a set of character delimited values (e.g., theset of values 330) in a text-based format. In another embodiment, theset of values may correspond to a row of values in a character delimitedvalue file. The method 800 may continue at operation 812 and thegeneration module 140 may generate, in real time, a synchronizationblock (e.g., synchronization block 440) as described herein. Thesynchronization block includes nibbles (e.g., nibbles 332) for each ofthe values in the set of values read by the input module 120.

The method 800 may continue at operation 814 and the output module 160sequentially output the synchronization block and the one or more valuesto a binary output data stream. The binary output data stream may outputthe one or more values in a device dependent format (e.g., devicedependent format 640) according to respective byte size of the one ormore values.

The method 800 may continue at operation 816 and the input module 120may read a synchronization block. In one embodiment, reading thesynchronization block may include reading bytes from a stream of bytesuntil a boundary nibble is read. A boundary nibble indicates an end ofthe synchronization block and a beginning of values. In anotherembodiment, the input module 120 may read the synchronization block onebyte at a time until the boundary nibble is read.

After reading the synchronization block, the input module 120 maydetermine value offsets for respective values in the set of values basedon the values of the nibbles. For example, in response to the firstnibble indicating that the first value includes one byte, the generationmodule 140 may read one byte. Based on the first nibble indicating thatthe first value includes two bytes, the input module 120 may read twobytes, etc. The input module 120 may accordingly read subsequent valuesfrom the stream of bytes based on indicated byte sizes in the nibbles inthe synchronization block.

Furthermore, the input module 120 may determine an offset value for avalue in the set of values. For example, the input module 120 mayreceive an index for a value included in the array of values. Inresponse, the input module 120 may determine a number of bytes indicatedbefore the indicated value, skip that number of bytes in the stream ofbytes, and read the value at operation 820. Therefore, because thesynchronization block indicates byte sizes of respective values, theinput module 120 may determine an offset value for any of the values inthe array and read the value. In this way, the synchronization blockprovides fast access to values in the array without having to read othervalues in the array.

FIG. 9 is an illustration depicting a method 900 for reading values intransformed character delimited values, in accordance with an exampleembodiment. Operations in the method 900 may be performed by the system100, using modules described above with respect to FIGS. 1-3. As shownin FIG. 9, the method 900 includes operations 910, 912, 914, 916, 918,and 920.

In one embodiment, the method 900 may begin and at operation 910 theinput module 120 may receive an index for a value included in an arrayof values. The index indicates a position of the value in the array ofvalues. For example, the index may be four, which indicates the fourthvalue in the array of values.

The method 900 may continue at operation 912 and the input module 120may read the synchronization block. The method 900 may continue atoperation 914 and the input module 120 may determine whether the nibblefor the value in the synchronization block is a byte size or a flag. Inresponse to the nibble indicating a byte size, the input module 120 maydetermine a byte offset for the value at operation 916.

In one example, the input module 120 may count byte sizes for precedingvalues to determine an offset. In another example, preceding values mayinclude predetermined values. In this example, the input module 120 maynot include the predetermined value in the offset calculation becausethe value is not stored in the set of values. The method may continue atoperation 920 and the input module 120 may read the value based on thebyte offset and the byte size.

In response to the nibble indicating a predetermined value, the inputmodule 120 may determine that the value matches the predetermined valueat operation 918. The predetermined value may be received from a user orother source. In another example, the predetermined value may bereceived before reading the synchronization block for the set of values.

FIG. 10 is a block diagram illustrating components of a machine 1000,according to some example embodiments, able to read instructions 1024from a machine-readable medium 1022 (e.g., any of a non-transitorymachine-readable medium, a machine-readable storage medium, acomputer-readable storage medium, or any suitable combination thereof)and perform any one or more of the methodologies discussed herein, inwhole or in part. Specifically, FIG. 10 shows the machine 1000 in theexample form of a computer system (e.g., a computer) within which theinstructions 1024 (e.g., software, a program, an application, an applet,an app, or other executable code) for causing the machine 1000 toperform any one or more of the methodologies discussed herein may beexecuted, in whole or in part. In one example embodiment, the inputmodule 120, the generation module 140, and the output module 160 may beincluded in the instructions 1024.

In alternative embodiments, the machine 1000 may operate as a standalonedevice or may be connected (e.g., networked) to other machines. Theinput module 120, the generation module 140, and the output module 160may operate via the machine 1000. In a networked deployment, the machine1000 may operate in the capacity of a server machine or a client machinein a server-client network environment, or as a peer machine in adistributed (e.g., peer-to-peer) network environment. The machine 1000may be a server computer, a client computer, a personal computer (PC), atablet computer, a laptop computer, a netbook, a cellular telephone, asmartphone, a set-top box (STB), a personal digital assistant (PDA), aweb appliance, a network router, a network switch, a network bridge, orany machine capable of executing the instructions 1024, sequentially orotherwise, that specify actions to be taken by that machine. Further,while only a single machine is illustrated, the term “machine” shallalso be taken to include any collection of machines that individually orjointly execute the instructions 1024 to perform all or part of any oneor more of the methodologies discussed herein. Therefore, in certainembodiments, the various modules described herein, may be executed ondifferent machines operating as part of the system 100.

The machine 1000 includes a processor 1002 (e.g., a central processingunit (CPU), a graphics processing unit (GPU), a digital signal processor(DSP), an application specific integrated circuit (ASIC), aradio-frequency integrated circuit (RFIC), or any suitable combinationthereof), a main memory 1004, and a static memory 1006, which areconfigured to communicate with each other via a bus 1008. The processor1002 may contain microcircuits that are configurable, temporarily orpermanently, by some or all of the instructions 1024 such that theprocessor 1002 is configurable to perform any one or more of themethodologies described herein, in whole or in part. For example, a setof one or more microcircuits of the processor 1002 may be configurableto execute one or more modules (e.g., software modules) describedherein.

The machine 1000 may further include a graphics display 1010 (e.g., aplasma display panel (PDP), a light emitting diode (LED) display, aliquid crystal display (LCD), a projector, a cathode ray tube (CRT), orany other display capable of displaying graphics or video). The machine1000 may also include an alphanumeric input device 1012 (e.g., akeyboard or keypad), a cursor control device 1014 (e.g., a mouse, atouchpad, a trackball, a joystick, a motion sensor, an eye trackingdevice, or other pointing instrument), a storage unit 1016, an audiogeneration device 1018 (e.g., a sound card, an amplifier, a speaker, aheadphone jack, or any suitable combination thereof), and a networkinterface device 1020. The input module 120 may receive one or morepredetermined values from the alphanumeric input device 1012, the cursorcontrol device 1014, the storage unit 1016, or the like.

The storage unit 1016 includes the machine-readable medium 1022 on whichare stored the instructions 1024 embodying any one or more of themethodologies or functions described herein. The instructions 1024 mayalso reside, completely or at least partially, within the main memory1004, within the processor 1002 (e.g., within the processor's cachememory), or both, before or during execution thereof by the machine1000. Accordingly, the main memory 1004 and the processor 1002 may beconsidered machine-readable media 1022 (e.g., tangible andnon-transitory machine-readable media). The instructions 1024 may betransmitted or received over the network 104 via the network interfacedevice 1020. For example, the network interface device 1020 maycommunicate the instructions 1024 using any one or more transferprotocols (e.g., hypertext transfer protocol (HTTP)).

In some example embodiments, the machine 1000 may be a portablecomputing device, such as a smart phone or tablet computer. Examples ofsuch input components include an image input component (e.g., one ormore cameras), an audio input component (e.g., a microphone), adirection input component (e.g., a compass), a location input component(e.g., a global positioning system (GPS) receiver), an orientationcomponent (e.g., a gyroscope), a motion detection component (e.g., oneor more accelerometers), an altitude detection component (e.g., analtimeter), and a gas detection component (e.g., a gas sensor). Inputsharvested by any one or more of these input components may be accessibleand available for use by any of the modules described herein.

Throughout this specification, plural instances may implementcomponents, operations, or structures described as a single instance.Although individual operations of one or more methods are illustratedand described as separate operations, one or more of the individualoperations may be performed concurrently, and nothing requires that theoperations be performed in the order illustrated. Structures andfunctionality presented as separate components in example configurationsmay be implemented as a combined structure or component. Similarly,structures and functionality presented as a single component may beimplemented as separate components. These and other variations,modifications, additions, and improvements fall within the scope of thesubject matter herein.

Certain embodiments are described herein as including logic or a numberof components, modules, or mechanisms. Modules may constitute softwaremodules (e.g., code stored or otherwise embodied on a machine-readablemedium or in a transmission medium), hardware modules, or any suitablecombination thereof. A “hardware module” is a tangible unit capable ofperforming certain operations and may be configured or arranged in acertain physical manner. In various example embodiments, one or morecomputer systems (e.g., a standalone computer system, a client computersystem, or a server computer system) or one or more hardware modules ofa computer system (e.g., a processor or a group of processors) may beconfigured by software (e.g., an application or application portion) asa hardware module that operates to perform certain operations asdescribed herein.

In some embodiments, a hardware module may be implemented mechanically,electronically, or any suitable combination thereof. For example, ahardware module may include dedicated circuitry or logic that ispermanently configured to perform certain operations. For example, ahardware module may be a special-purpose processor, such as a fieldprogrammable gate array (FPGA) or an ASIC. A hardware module may alsoinclude programmable logic or circuitry that is temporarily configuredby software to perform certain operations. For example, a hardwaremodule may include software encompassed within a general-purposeprocessor or other programmable processor. It will be appreciated thatthe decision to implement a hardware module mechanically, in dedicatedand permanently configured circuitry, or in temporarily configuredcircuitry (e.g., configured by software) may be driven by cost and timeconsiderations.

Accordingly, the phrase “hardware module” should be understood toencompass a tangible entity, and such a tangible entity may bephysically constructed, permanently configured (e.g., hardwired), ortemporarily configured (e.g., programmed) to operate in a certain manneror to perform certain operations described herein. As used herein,“hardware-implemented module” refers to a hardware module. Consideringembodiments in which hardware modules are temporarily configured (e.g.,programmed), each of the hardware modules need not be configured orinstantiated at any one instance in time. For example, where a hardwaremodule comprises a general-purpose processor configured by software tobecome a special-purpose processor, the general-purpose processor may beconfigured as respectively different special-purpose processors (e.g.,comprising different hardware modules) at different times. Software(e.g., a software module) may accordingly configure one or moreprocessors, for example, to constitute a particular hardware module atone instance of time and to constitute a different hardware module at adifferent instance of time.

Hardware modules can provide information to, and receive informationfrom, other hardware modules. Accordingly, the described hardwaremodules may be regarded as being communicatively coupled. Where multiplehardware modules exist contemporaneously, communications may be achievedthrough signal transmission (e.g., over appropriate circuits and buses)between or among two or more of the hardware modules. In embodiments inwhich multiple hardware modules are configured or instantiated atdifferent times, communications between such hardware modules may beachieved, for example, through the storage and retrieval of informationin memory structures to which the multiple hardware modules have access.For example, one hardware module may perform an operation and store theoutput of that operation in a memory device to which it iscommunicatively coupled. A further hardware module may then, at a latertime, access the memory device to retrieve and process the storedoutput. Hardware modules may also initiate communications with input oroutput devices, and can operate on a resource (e.g., a collection ofinformation).

The various operations of example methods described herein may beperformed, at least partially, by one or more processors that aretemporarily configured (e.g., by software) or permanently configured toperform the relevant operations. Whether temporarily or permanentlyconfigured, such processors may constitute processor-implemented modulesthat operate to perform one or more operations or functions describedherein. As used herein, “processor-implemented module” refers to ahardware module implemented using one or more processors.

Similarly, the methods described herein may be at least partiallyprocessor-implemented, a processor being an example of hardware. Forexample, at least some of the operations of a method may be performed byone or more processors or processor-implemented modules. As used herein,“processor-implemented module” refers to a hardware module in which thehardware includes one or more processors. Moreover, the one or moreprocessors may also operate to support performance of the relevantoperations in a “cloud computing” environment or as a “software as aservice” (SaaS). For example, at least some of the operations may beperformed by a group of computers (as examples of machines includingprocessors), with these operations being accessible via a network 104(e.g., the Internet) and via one or more appropriate interfaces (e.g.,an application program interface (API)).

In one embodiment, the input module 120 may receive one or more sets ofcharacter delimited characters via the network interface device 1020communicating with the network 104. Furthermore, the output module 160may output the binary output data stream via the network interfacedevice 1020. In another embodiment, the input module 120 may read theset of character delimited values from the storage unit 1016 and/or theoutput module 160 may output the transformed binary data stream to thestorage unit 1016. Therefore, in certain embodiments, the storage unit1016 may include the storage device 220 and/or storage device 222described in FIG. 2.

The performance of certain operations may be distributed among the oneor more processors, not only residing within a single machine, butdeployed across a number of machines. In some example embodiments, theone or more processors or processor-implemented modules may be locatedin a single geographic location (e.g., within a home environment, anoffice environment, or a server farm). In other example embodiments, theone or more processors or processor-implemented modules may bedistributed across a number of geographic locations.

Some portions of the subject matter discussed herein may be presented interms of algorithms or symbolic representations of operations on datastored as bits or binary digital signals within a machine memory (e.g.,a computer memory). Such algorithms or symbolic representations areexamples of techniques used by those of ordinary skill in the dataprocessing arts to convey the substance of their work to others skilledin the art. As used herein, an “algorithm” is a self-consistent sequenceof operations or similar processing leading to a desired result. In thiscontext, algorithms and operations involve physical manipulation ofphysical quantities. Typically, but not necessarily, such quantities maytake the form of electrical, magnetic, or optical signals capable ofbeing stored, accessed, transferred, combined, compared, or otherwisemanipulated by a machine. It is convenient at times, principally forreasons of common usage, to refer to such signals using words such as“data,” “content,” “bits,” “values,” “elements,” “symbols,”“characters,” “terms,” “numbers,” “numerals,” or the like. These words,however, are merely convenient labels and are to be associated withappropriate physical quantities.

Unless specifically stated otherwise, discussions herein using wordssuch as processing,” “computing.” “calculating” “determining,”“presenting,” “displaying,” or the like may refer to actions orprocesses of a machine (e.g., a computer) that manipulates or transformsdata represented as physical (e.g., electronic, magnetic, or optical)quantities within one or more memories (e.g., volatile memory,non-volatile memory, or any suitable combination thereof), registers, orother machine components that receive, store, transmit, or displayinformation. Furthermore, unless specifically stated otherwise, theterms “a” or “an” are herein used, as is common in patent documents, toinclude one or more than one instance. Finally, as used herein, theconjunction “or” refers to a non exclusive “or,” unless specificallystated otherwise.

What is claimed is:
 1. A computer system comprising: a processor; amemory device holding an instruction set executable on the processor tocause the computer system to perform operations comprising: reading aset of character delimited values; generating a synchronization blockfor the set of values, the synchronization block comprising, for each ofthe values of the set of values, at least one of a byte size of thecorresponding value and a predetermined flag representing thecorresponding value; and outputting the synchronization block and theset of values to a binary output data stream in a device dependent byteorder according to respective byte sizes of the values.
 2. The computersystem of claim 1, wherein one of the values in the set of values is astring and the corresponding byte size indicates a length of the string,the binary output data stream outputting the string in byte order. 3.The computer system of claim 1, wherein the synchronization block endswith a boundary value, the boundary value providing a boundary betweenthe synchronization block and the set of values.
 4. The computer systemof claim 3, wherein the synchronization block further comprises a fillervalue in response to a number of values for the synchronization blockbeing an odd number of values, the filler value positioned between theset of values and the boundary value.
 5. The computer system of claim 1;wherein values of the set of values that are represented by apredetermined flag are not output with the set of values.
 6. Thecomputer system of claim 1, wherein one of the predetermined flagsindicates that the corresponding value is a repeated value from aprevious set of values, the value not output with the set of values. 7.The computer system of claim 1, wherein the synchronization blockcomprises an index into a set of cached synchronization blocks.
 8. Thecomputer system of claim 1, wherein the operations further comprisedetermining a value at a specified index in the set of values in thebinary output data stream by: reading the synchronization block todetermine a byte offset identifying a location of the value; and readingone or more bytes at the location in a device dependent order, the oneor more bytes representing the value at the specified index.
 9. Acomputer-implemented method comprising: reading a set of characterdelimited values; generating, a synchronization block for the set ofvalues, the synchronization block comprising, for each value of the setof values, at least one of a byte size of the corresponding value and apredetermined flag representing the corresponding value; and outputtingthe synchronization block and the set of values to a binary output datastream in a device dependent byte order according to respective bytesizes of the values.
 10. The computer-implemented method of claim 9,wherein one of the values in the set of values is a string and thecorresponding byte size indicates a length of the string, the binaryoutput data stream outputting the string in byte order.
 11. Thecomputer-implemented method of claim 9, wherein the synchronizationblock ends with a boundary value, the boundary value providing aboundary between the synchronization block and the set of values. 12.The computer-implemented method of claim 11, wherein the synchronizationblock further comprises a filler value in response to a number of valuesfor the synchronization block being an odd number of values, the fillervalue positioned between the set of values and the boundary value. 13.The computer-implemented method of claim 9, wherein values of the set ofvalues that are represented by a predetermined flag are not output withthe set of values.
 14. The computer system of claim 9, wherein one ofthe predetermined flags indicates that the corresponding value is arepeated value from a previous set of values, the value not output withthe set of values.
 15. The computer-implemented method of claim 9,wherein the synchronization block comprises an index into a set ofcached synchronization blocks.
 16. The computer-implemented method ofclaim 9, further comprising determining a value at a specified index inthe set of values in the binary output data stream by: reading thesynchronization block to determine a byte offset identifying a locationof the value; and reading one or more bytes at the location in a devicedependent order, the one or more bytes representing the value at thespecified index.
 17. A computer-implemented method comprising: reading aset of character delimited values; generating, a synchronization blockfor the set of values, the synchronization block comprising, for eachvalue of the set of values, at least one of a byte size of thecorresponding value and a predetermined flag representing thecorresponding value; and outputting the synchronization block and theset of values to a binary output data stream in a device dependent byteorder according to respective byte sizes of the values.
 18. Thecomputer-implemented method of claim 17, wherein one of the values inthe set of values is a string and the corresponding byte size indicatesa length of the string, the binary output data stream outputting thestring in byte order.
 19. The computer system of claim 17, wherein theplurality of bytes comprises a predetermined flag that indicates thevalue.
 20. The computer system of claim 17, wherein the synchronizationblock comprises a filler value and a boundary value, the filler valueand the boundary value included in a byte that terminates thesynchronization block.